﻿// Admin.NET 项目的版权、商标、专利和其他相关权利均受相应法律法规的保护。使用本项目应遵守相关法律法规和许可证的要求。
//
// 本项目主要遵循 MIT 许可证和 Apache 许可证（版本 2.0）进行分发和使用。许可证位于源代码树根目录中的 LICENSE-MIT 和 LICENSE-APACHE 文件。
//
// 不得利用本项目从事危害国家安全、扰乱社会秩序、侵犯他人合法权益等法律法规禁止的活动！任何基于本项目二次开发而产生的一切法律纠纷和责任，我们不承担任何责任！

namespace Admin.NET.Core.Service;

/// <summary>
/// 系统球队表基础输入参数
/// </summary>
public class SysTeamBaseInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    public virtual long? Id { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>
    [Required(ErrorMessage = "名称不能为空")]
    public virtual string Name { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    public virtual string? Code { get; set; }
    
    /// <summary>
    /// 级别
    /// </summary>
    public virtual int? Level { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>
    public virtual string? Type { get; set; }
    
    /// <summary>
    /// 负责人Id
    /// </summary>
    public virtual long? DirectorId { get; set; }
    
    /// <summary>
    /// 排序
    /// </summary>
    [Required(ErrorMessage = "排序不能为空")]
    public virtual int? OrderNo { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Dict(nameof(StatusEnum), AllowNullValue=true)]
    [Required(ErrorMessage = "状态不能为空")]
    public virtual StatusEnum? Status { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public virtual string? Remark { get; set; }
    
}

/// <summary>
/// 系统球队表分页查询输入参数
/// </summary>
public class PageSysTeamInput : BasePageInput
{
    /// <summary>
    /// 名称
    /// </summary>
    public string Name { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    public string? Code { get; set; }
    
    /// <summary>
    /// 级别
    /// </summary>
    public int? Level { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>
    public string? Type { get; set; }
    
    /// <summary>
    /// 负责人Id
    /// </summary>
    public long? DirectorId { get; set; }
    
    /// <summary>
    /// 排序
    /// </summary>
    public int? OrderNo { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Dict(nameof(StatusEnum), AllowNullValue=true)]
    public StatusEnum? Status { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    public string? Remark { get; set; }
    
    /// <summary>
    /// 选中主键列表
    /// </summary>
     public List<long> SelectKeyList { get; set; }
}

/// <summary>
/// 系统球队表增加输入参数
/// </summary>
public class AddSysTeamInput
{
    /// <summary>
    /// 名称
    /// </summary>
    [Required(ErrorMessage = "名称不能为空")]
    [MaxLength(64, ErrorMessage = "名称字符长度不能超过64")]
    public string Name { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    [MaxLength(64, ErrorMessage = "编码字符长度不能超过64")]
    public string? Code { get; set; }
    
    /// <summary>
    /// 级别
    /// </summary>
    public int? Level { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>
    [MaxLength(64, ErrorMessage = "类型字符长度不能超过64")]
    public string? Type { get; set; }
    
    /// <summary>
    /// 负责人Id
    /// </summary>
    public long? DirectorId { get; set; }
    
    /// <summary>
    /// 排序
    /// </summary>
    [Required(ErrorMessage = "排序不能为空")]
    public int? OrderNo { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [Dict(nameof(StatusEnum), AllowNullValue=true)]
    [Required(ErrorMessage = "状态不能为空")]
    public StatusEnum? Status { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [MaxLength(128, ErrorMessage = "备注字符长度不能超过128")]
    public string? Remark { get; set; }
    
}

/// <summary>
/// 系统球队表删除输入参数
/// </summary>
public class DeleteSysTeamInput
{
    /// <summary>
    /// 主键Id
    /// </summary>
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
}

/// <summary>
/// 系统球队表更新输入参数
/// </summary>
public class UpdateSysTeamInput
{
    /// <summary>
    /// 主键Id
    /// </summary>    
    [Required(ErrorMessage = "主键Id不能为空")]
    public long? Id { get; set; }
    
    /// <summary>
    /// 名称
    /// </summary>    
    [Required(ErrorMessage = "名称不能为空")]
    [MaxLength(64, ErrorMessage = "名称字符长度不能超过64")]
    public string Name { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>    
    [MaxLength(64, ErrorMessage = "编码字符长度不能超过64")]
    public string? Code { get; set; }
    
    /// <summary>
    /// 级别
    /// </summary>    
    public int? Level { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>    
    [MaxLength(64, ErrorMessage = "类型字符长度不能超过64")]
    public string? Type { get; set; }
    
    /// <summary>
    /// 负责人Id
    /// </summary>    
    public long? DirectorId { get; set; }
    
    /// <summary>
    /// 排序
    /// </summary>    
    [Required(ErrorMessage = "排序不能为空")]
    public int? OrderNo { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>    
    [Dict(nameof(StatusEnum), AllowNullValue=true)]
    [Required(ErrorMessage = "状态不能为空")]
    public StatusEnum? Status { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>    
    [MaxLength(128, ErrorMessage = "备注字符长度不能超过128")]
    public string? Remark { get; set; }
    
}

/// <summary>
/// 系统球队表主键查询输入参数
/// </summary>
public class QueryByIdSysTeamInput : DeleteSysTeamInput
{
}

/// <summary>
/// 设置状态输入参数
/// </summary>
public class SetSysTeamStatusInput : BaseStatusInput
{
}

/// <summary>
/// 系统球队表数据导入实体
/// </summary>
[ExcelImporter(SheetIndex = 1, IsOnlyErrorRows = true)]
public class ImportSysTeamInput : BaseImportInput
{
    /// <summary>
    /// 名称
    /// </summary>
    [ImporterHeader(Name = "*名称")]
    [ExporterHeader("*名称", Format = "", Width = 25, IsBold = true)]
    public string Name { get; set; }
    
    /// <summary>
    /// 编码
    /// </summary>
    [ImporterHeader(Name = "编码")]
    [ExporterHeader("编码", Format = "", Width = 25, IsBold = true)]
    public string? Code { get; set; }
    
    /// <summary>
    /// 级别
    /// </summary>
    [ImporterHeader(Name = "级别")]
    [ExporterHeader("级别", Format = "", Width = 25, IsBold = true)]
    public int? Level { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>
    [ImporterHeader(Name = "类型")]
    [ExporterHeader("类型", Format = "", Width = 25, IsBold = true)]
    public string? Type { get; set; }
    
    /// <summary>
    /// 负责人Id
    /// </summary>
    [ImporterHeader(Name = "负责人Id")]
    [ExporterHeader("负责人Id", Format = "", Width = 25, IsBold = true)]
    public long? DirectorId { get; set; }
    
    /// <summary>
    /// 排序
    /// </summary>
    [ImporterHeader(Name = "*排序")]
    [ExporterHeader("*排序", Format = "", Width = 25, IsBold = true)]
    public int? OrderNo { get; set; }
    
    /// <summary>
    /// 状态
    /// </summary>
    [ImporterHeader(Name = "*状态")]
    [ExporterHeader("*状态", Format = "", Width = 25, IsBold = true)]
    public StatusEnum? Status { get; set; }
    
    /// <summary>
    /// 备注
    /// </summary>
    [ImporterHeader(Name = "备注")]
    [ExporterHeader("备注", Format = "", Width = 25, IsBold = true)]
    public string? Remark { get; set; }
    
}
